package com.Logistics.EDOMFeign;

import com.Logistics.mycommon.tools.Result;
import com.Logistics.vo.ExpressItem;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "pd-work", path = "/EDOM")
public interface EDOMFeignClient {
    /**
     * 根据订单id查询取件信息
     * @param orderId
     * @return
     */
    @GetMapping("/GetExpressItemByOrderId/{orderId}")
    public ExpressItem GetExpressItemByOrderId(@RequestParam("orderId") String orderId);

    /**
     *查看取件派件的数量
     * @param orderId
     * @return
     */

    @GetMapping("/GetExpressItemByOrderId_to/{orderId}")
    public Result GetExpressItemByOrderId_to(@RequestParam("orderId") String orderId);
}
